package com.netease.nie.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.GoodsInfoImageMapper;
import com.netease.nie.model.GoodsInfoImage;

@Repository
public class GoodsInfoImageDao {

	@Resource
	private GoodsInfoImageMapper goodsInfoImageMapper;
	
	public List<GoodsInfoImage> queryGoodsInfoImagesByGoodsId(int goodsId) {
		return goodsInfoImageMapper.queryGoodsInfoImagesByGoodsId(goodsId);
	}
	
	public GoodsInfoImage queryCoverImageByGoodsId(int goodsId) {
		return goodsInfoImageMapper.queryCoverImageByGoodsId(goodsId);
	}
}
